<?php
class Assistant extends AppModel {

	var $name = 'Assistant';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Jobseeker' => array('className' => 'Jobseeker',
								'foreignKey' => 'jobseeker_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'Academic' => array('className' => 'Academic',
								'foreignKey' => 'academic_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);
	var $hasMany=array(
	'Assistant_priority'=>array('classname'=>'Assistant_priority',
								'foreignKey' => 'assistant_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);
	var $hasAndBelongsToMany = array(
			'City' => array('className' => 'City',
						'joinTable' => 'assistants_cities',
						'foreignKey' => 'assistant_id',
						'associationForeignKey' => 'city_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			),
			'Field' => array('className' => 'Field',
						'joinTable' => 'assistants_fields',
						'foreignKey' => 'assistant_id',
						'associationForeignKey' => 'field_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			)
	);

}
?>